package cn.no3;

import java.util.*;
public class Max {
	static int max(int a, int b) {
        if(a < b) return b;
        return a;
    }
    public static void main(String[] args) {
        final int inf = -0x3f3f3f3f;
        Scanner s = new Scanner(System.in);
        int []array = new int[10];
        int n = 5, res = inf;
        for(int i = 1; i <= n; i++) {
            array[i] = s.nextInt();
            res = max(res, array[i]);
        }
        System.out.println(res);
        s.close();
    }
}